#!/bin/sh

path=${1:-""}
repo=${2:-""}
name=${3:-"backup"}

if [ -e ${path} ] ; then
    cd ${path}
    git remote add ${name} ${repo}
else
    echo "No such file: ${path}"
fi

